/**
 * @author: wq
 * @Date: 2018/1/9
 * @Time: 9:48
 * <p>
 * Description:
 *          ***
 */

import axios from 'axios';
import { ALL_SERVICE_API } from '../api';

var qs = require('qs');

export const searchMessageLogs = params => {
  return axios.get(ALL_SERVICE_API + `/messages-logs/admin`, {params: params});
};

export const modifyMessageLogBySource = (sources, isRead) => {
  return axios.post(ALL_SERVICE_API + `/message-logs/admin/modify`, qs.stringify({
    sources: sources,
    isRead: isRead
  }));
};
